<?php $this->beginContent('/layouts/main'); ?>

<?php 
    $user = Users::model()->findByPk(Yii::app()->user->id);
    $cs = Yii::app()->getClientScript(); 
    // CSS 
    $cs->registerCssFile(Html::cssUrl('t1_more.bundle.css'), 'screen');
?>

<div class="dashboard">
    <div class="module mini-profile">

        <div class="flex-module profile-summary js-profile-summary">
            <a data-nav="profile" class="account-summary account-summary-small" href="<?php echo Yii::app()->createUrl('/tweet/user',array('name'=>$user->username))?>">
                <div class="content">
                    <div data-screen-name="luckymancvp" data-user-id="83644624" class="account-group js-mini-current-user">
                        <img data-user-id="83644624" alt="Dang Thanh Tu" src="<?php echo Html::avatarUrl($user->avatar)?>" class="avatar size32">
                        <b class="fullname"><?php echo $user->full_name?></b>
                        <small class="metadata">View my profile page</small>
                    </div>
                </div>
            </a>
        </div>

    </div>

    <div class="module">
        <ul class="js-nav-links">
            <li class="<?php echo $this->action->id == "account" ? "active" : "" ?>"><a data-nav="account"  href="<?php echo Yii::app()->createUrl('/setting/account')?>" class="list-link js-nav">Account <i class="chev-right"></i></a></li>
            <li class="<?php echo $this->action->id == "password"? "active" : "" ?>"><a data-nav="password" href="<?php echo Yii::app()->createUrl('/setting/password')?>" class="list-link js-nav">Password<i class="chev-right"></i></a></li>
            <li class="<?php echo $this->action->id == "mobile" ? "active" : "" ?>"><a data-nav="devices"  href="<?php echo Yii::app()->createUrl('/setting/mobile')?>" class="list-link js-nav">Mobile <i class="chev-right"></i></a></li>
            <li class="<?php echo $this->action->id == "notification"  ? "active" : "" ?>"><a data-nav="notifications" href="<?php echo Yii::app()->createUrl('/setting/notification')?>" class="list-link js-nav">Email notifications <i class="chev-right"></i></a></li>
            <li class="<?php echo $this->action->id == "profile" ? "active" : "" ?>"><a data-nav="profile" href="<?php echo Yii::app()->createUrl('/setting/profile')?>" class="list-link js-nav">Profile <i class="chev-right"></i></a></li>


            <li class="<?php echo $this->action->id == "design" ? "active" : "" ?>"><a data-nav="design" href="<?php echo Yii::app()->createUrl('/setting/design')?>" class="list-link js-nav">Design <i class="chev-right"></i></a></li>
            <li class="<?php echo $this->action->id == "applications" ? "active" : "" ?>"><a data-nav="connections" href="<?php echo Yii::app()->createUrl('/setting/applications')?>" class="list-link js-nav">Apps<i class="chev-right"></i></a></li>

        </ul>
    </div>

    <div class="module site-footer ">
        <div class="flex-module">
            <div class="flex-module-inner js-items-container">
                <ul class="clearfix">
                    <li class="copyright">&copy; 2012 Twitter</li>
                    <li><a href="/about">About</a></li>
                    <li><a href="//support.twitter.com">Help</a></li>
                    <li><a href="/tos">Terms</a></li>
                    <li><a href="/privacy">Privacy</a></li>
                    <li><a href="http://blog.twitter.com">Blog</a></li>
                    <li><a href="http://status.twitter.com">Status</a></li>
                    <li><a href="/download">Apps</a></li>
                    <li><a href="/about/resources">Resources</a></li>
                    <li><a href="/jobs">Jobs</a></li>
                    <li><a href="//business.twitter.com/en/advertise/start">Advertisers</a></li>
                    <li><a href="//business.twitter.com/index_en.html">Businesses</a></li>
                    <li><a href="http://media.twitter.com">Media</a></li>
                    <li><a href="//dev.twitter.com">Developers</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>
<?php echo $content ?>
<?php $this->endContent(); ?>